<div>
  <!-- 面包屑 -->
  <el-row>
    <el-col :span='24'>
      <el-breadcrumb class="breadcrumb" separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>用户管理</el-breadcrumb-item>
        <el-breadcrumb-item>用户列表</el-breadcrumb-item>
      </el-breadcrumb>
    </el-col>
  </el-row>
  <!-- 列表搜索 -->
  <el-row class="search-box" :gutter="20">
    <el-col :span="12">
      <el-input placeholder="请输入内容" v-model="inputText" class="input-with-select">
      </el-select>
      <el-button slot="append" icon="el-icon-search" @click="handelSearch"></el-button>
      </el-input>
    </el-col>
    <el-col :span='6'>
      <el-button type="success" plain @click="dialogFormVisible=true">添加用户</el-button>
    </el-col>
  </el-row>
  <!-- 表格列表 -->
  <el-table :data="tableData" border style="width: 100%">
    <el-table-column prop="username" label="用户名" width="180">
    </el-table-column>
    <el-table-column prop="name" label="姓名" width="180">
    </el-table-column>
    <el-table-column prop="email" label="邮箱" width="180">
    </el-table-column>
    <el-table-column prop="mobile" label="电话" width="180">
    </el-table-column>
  </el-table>
  <!-- 数据分页 -->
  <el-pagination
    background
    layout="prev, pager, next"
    :page-size='5'
    :total="total"
    @current-change="handelCurrentChange"
    >
 </el-pagination>
  <!-- 添加用户弹框 -->
  <!--
    el-dialog 是对话框组件
    visible 属性需要绑定一个布尔值，对话框会根据布尔值的真假来显示与隐藏
   -->
  <el-dialog title="添加用户" :visible.sync="dialogFormVisible">
    <el-form ref="addUserForm" :model="addUserForm" ::label-position="labelPosition" size="small">
      <el-form-item label="用户名" label-width="80px" prop="username">
        <el-input v-model="addUserForm.username" auto-complete="off"></el-input>
      </el-form-item>
      <el-form-item label="密码" label-width="80px" prop="password">
        <el-input v-model="addUserForm.password" auto-complete="off"></el-input>
      </el-form-item>
      <el-form-item label="邮箱" label-width="80px" prop="email">
        <el-input v-model="addUserForm.email" auto-complete="off"></el-input>
      </el-form-item>
      <el-form-item label="电话" label-width="80px" prop="mobile">
        <el-input v-model="addUserForm.mobile" auto-complete="off"></el-input>
      </el-form-item>

    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">取 消</el-button>
      <el-button type="primary" @click="handelAddUser">确 定</el-button>
    </div>
</el-dialog>
</div>
